package me.jiatao.wan.data.network.pojo

import com.google.gson.annotations.SerializedName

/**
 * @Author: taojia
 * @CreateDate: 2021/8/24 3:54 下午
 * @Version: 1.0
 * @Description:
 */

data class Tag(
    val name: String,
    val url: String
)

/**
 * 文章实体类
 */
data class ArticlePojo(
    val apkLink: String,
    val audit: Int,
    val author: String,
    val canEdit: Boolean,
    val chapterId: Int,
    val chapterName: String,
    val collect: Boolean,
    val courseId: Int,
    val desc: String,
    val descMd: String,
    val envelopePic: String,
    val fresh: Boolean,
    val host: String,
    val id: Int,
    val link: String,
    val niceDate: String,
    val niceShareDate: String,
    val origin: String,
    val prefix: String,
    val projectLink: String,
    val publishTime: Long,
    val realSuperChapterId: Int,
    val selfVisible: Int,
    val shareDate: Long,
    val shareUser: String,
    val superChapterId: Int,
    val superChapterName: String,
    val tags: List<Tag>?,
    val title: String,
    val type: Int,
    val userId: Int,
    val visible: Int,
    val zan: Int,
    var isTop: Boolean = false
)

/**
 * 文章分页实体
 */
data class ArticlePagePojo(
    val curPage: Int,
    @SerializedName("datas")
    val articleList: List<ArticlePojo>?,
    val offset: Int,
    val over: Boolean,
    val pageCount: Int,
    val size: Int,
    val total: Int
)
